package com.robotboy.data.service.impl;

import java.util.ArrayList;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.robotboy.data.dao.MatchRepository;
import com.robotboy.data.entity.Match;
import com.robotboy.data.service.MatchService;
@Service
@Transactional
public class MatchServiceImpl implements MatchService {
	
	@Autowired
	private MatchRepository matchRepository;

	@Override
	public List<Match> findAll() {
		return matchRepository.findAll();
//		return new ArrayList<Match>();
	}

}
